<?php //echo '<pre>'; print_r($projects) ?>
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>/public/style.css"> 
<div class="header-title">Forms</div>
<table class="list">
    <tr>
        <th>No</th>
        <th>Form Name</th>
        <th>Form Label</th>
        <th>Form Variable</th>
        <th>Action Name</th>  
        <th>Controller Name</th>     
        <th>Form Order</th>  
        <th>Actions</th>  
    </tr>
    <?php foreach($forms as $key => $form): ?>
    <tr>
        <td><?php echo $key+1 ?></td>
        <td><?php echo $form->form_name?></td>
        <td><?php echo $form->form_label?></td>
        <td><?php echo $form->form_variable ?></td>
        <td><?php echo $form->action_type_name ?></td>
        <td><?php echo $form->controller_name ?></td>
        <td><?php echo $form->form_order ?></td>
        <td>
            <a href="<?php echo base_url() ?>index.php/forms/edit/form-id/<?php echo $form->form_id ?>">Edit</a>
            <a href="<?php echo base_url() ?>index.php/forms/delete/form-id/<?php echo $form->form_id ?>">Delete</a>
        </td>
    </tr>
    <?php endforeach; ?>
</table>